package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.CardMemberInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 会员信息Mapper接口
 *
 * @author ruoyi
 * @date 2025-01-25
 */
public interface CardMemberInfoMapper
{
    /**
     * 查询会员信息
     *
     * @param cardId 会员信息主键
     * @return 会员信息
     */
    public CardMemberInfo selectCardMemberInfoByCardId(Long cardId);

    /**
     * 查询会员信息列表
     *
     * @param cardMemberInfo 会员信息
     * @return 会员信息集合
     */
    public List<CardMemberInfo> selectCardMemberInfoList(CardMemberInfo cardMemberInfo);

    /**
     * 新增会员信息
     *
     * @param cardMemberInfo 会员信息
     * @return 结果
     */
    public int insertCardMemberInfo(CardMemberInfo cardMemberInfo);

    /**
     * 修改会员信息
     *
     * @param cardMemberInfo 会员信息
     * @return 结果
     */
    public int updateCardMemberInfo(CardMemberInfo cardMemberInfo);

    /**
     * 删除会员信息
     *
     * @param cardId 会员信息主键
     * @return 结果
     */
    public int deleteCardMemberInfoByCardId(Long cardId);

    /**
     * 批量删除会员信息
     *
     * @param cardIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCardMemberInfoByCardIds(Long[] cardIds);

    int insertCardMemberInfoBatch(List<CardMemberInfo> infoList);

    int updateCardMemberInfoBatch(CardMemberInfo cardMemberInfo);

    int deleteCardMemberInfoBatchByLshs(List<String> lshs);

    int updateCardMemberInfoBatchByLshs(List<String> lshs);

    int updateCardMemberInfoByCardIds(@Param("cardIds") Long[] cardIds, @Param("cardState") String cardState);
}
